package com.tyk.bookstore.back.order.repository;

import com.tyk.bookstore.back.common.dal.mapper.IMapper;
import com.tyk.bookstore.back.order.model.dto.OrderPayDetail4TaskDto;
import com.tyk.bookstore.back.order.model.dto.OrderSaleDetail4TaskDto;
import com.tyk.bookstore.back.order.model.entity.OrderDetailDo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author tyk
 * @description OrderDetailRepository
 */
@Mapper
public interface OrderDetailRepository extends IMapper<OrderDetailDo> {

    /**
     * 获取各书籍订单数量
     */
    List<OrderPayDetail4TaskDto> selectOrderPayDetail4TaskDtoList();

    /**
     * 获取各书籍销量
     */
    List<OrderSaleDetail4TaskDto> selectOrderSaleDetail4TaskDtoList();
}

